#ifndef HTTPSERVER_H
#define HTTPSERVER_H

#include <QObject>
#include <QThread>
#include <QTcpServer>
#include <QHostAddress>

#include "Temperature/tempmain.h"
#include "http/tasksession.h"
class TaskSession;

class HttpServer : public QObject
{
    Q_OBJECT
public:
    explicit HttpServer(QObject* parent);
    TempCase* getDevCase(QString devId);

private:
    QTcpServer* server;
    TaskSession* session;

signals:
    void updateDevInfo(QString dev);
public slots:

private slots:
    void newTaskSession();
    void deleteTastSession();
};

#endif // HTTPSERVER_H
